const express = require('express')
const routes = require('./routes')

const app = express()
// 处理json
app.use(express.json())
routes.forEach(route => app.use(route))

const port = 3000
app.listen(port, () => {
  console.log(`listening on http://127.0.0.1:${port}`)
})
